:root {
    --text-color: #1a1c20;
    --link-color: #3d15ed;
    --background-color: #eeeff;
}

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAV BAR */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0px 50px;
    height: 80px;
    align-items: center;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;

}

nav .right a:last-child {
    color: white;
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/*SECTION 1*/
.hero {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    align-items: center;
    margin-bottom: 100px;
    margin: 50px 0;

}

.hero .text h2 {
    font-size: 45px;
}

.hero .text {
    flex: 5;

}

.hero .text .links a {
    display: inline-block;
    padding: 5px 10px;
    margin-top: 20px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.1s;
}


.hero .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}


.hero .text p {
    font-size: 18px;

}

.hero .text .links span {
    margin-left: 3px;
}

.hero .text .links a:first-child {
    margin-left: 0;
}

.hero .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero .headshot img {
    width: 325px;
    border-radius: 50%;

}

/* Skills Section */
.skills {
    padding: 0 50px;
    margin-bottom: 100px;

}

.skills h2 {
    font-size: 35px;
    text-align: center;
}

.skills .text {
    text-align: center;
}

.skills .cells {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills .cells .cell {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid var(--text-color);
    border-radius: 5px;
    padding: 10px 20px;
    margin: 7px 20px;
}

.skills .cells .cell img {
    width: 25%;
    padding-right: 10px;
    border-radius: 2px;
}

.skills .cells .cell span {
    font-size: 18px;
}

/* About Me SECTION 3 */
.aboutme {

    padding: 0 50px;
    margin-bottom: 100px;
}

.aboutme h2 {
    font-size: 35px;
    margin-bottom: 30px;
}

.aboutme .group {
    display: flex;
    border: 1.5px solid var(--text-color);
    gap: 40px;
    align-items: center;
}

.aboutme .group .mydetails {
    width: 70%;
    text-align: center;
    margin-bottom: 10px;
}

.aboutme .group .mydetails p {
    font-weight: 600;
}

.aboutme .group .text {
    margin-right: 10px;
}

.aboutme .group .mydetails p:last-child {
    font-weight: normal;
}

.aboutme .group .mydetails img {
    width: 75%;
    margin: 15px 0px;
    border-radius: 50%;
}

/* Contact section4 */
.contact {
    padding: 0 50px;
    margin-bottom: 100px;
}

.contact h2 {
    font-size: 35px;
}

.contact .group {
    display: flex;
    gap: 50px;
}

.contact .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact .group form {
    display: flex;
    flex-direction: column;
    flex: 3;
}


.contact .group form textarea,
.contact .group form input {
    font-family: 'Poppins', sans-serif;
    border: 2px solid blue;
    background-color: transparent;
    padding: 10px;
    margin-bottom: 10px;
    outline: none;
    resize: none;
}

.contact .group form button {
    font-size: 16px;
    font-family: 'Poppins',sans-serif;
    color: white;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
}
.contact .group form button:hover {
    filter: brightness(.9);
}





@media (max-width: 620px) {

    /* NAV BAR */
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    /*hero SECTION*/
    .hero {
        padding: 0 20px;
    }

    .hero .text h2 {
        font-size: 35px;
    }

    /*Skills SECTION*/
    .skills {
        padding: 0 20px;
    }

    .skills .cells .cell span {
        font-size: 16px;
    }
    .aboutme{
        padding: 0 20px;
    }
    .contact {
        padding: 0 20px;
    }
}


@media (max-width: 740px) {
    .hero {
        flex-direction: column-reverse;
    }


    .hero .headshot img {
        margin-bottom: 25px;
        width: 300px;
    }

    .aboutme {
        text-align: center;
    }

    .aboutme .group {
        flex-direction: column;
    }

    .aboutme .group .text {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .contact .group {
        flex-direction: column;
    }

}


@media (max-width: 850px) {

    /* HERO SECTION 1*/
    .hero .text h2 {
        font-size: 35px;
    }
}